﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace IndignaFramework.Controllers.Code
{
    public class BackofficeLoginFilter: ActionFilterAttribute
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (!BackofficeMembership.isAuthenticated())
                filterContext.HttpContext.Response.Redirect("/Backoffice/NotLoggedIn");
            else
                base.OnActionExecuting(filterContext);
        }

        
    }
}